package com.freshman.passenger.api;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

import javax.annotation.Resource;
import java.util.Map;

@RestController
public class PassengerController {
    @Resource
    private RestTemplate restTemplate;


    @RequestMapping("query")
    public String queryOrder(){
        String object = restTemplate.getForObject("http://ORDER-SERVICE/query", String.class);
        return object;
    }
}
